package com.zeng.stpro.modules.app.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author ZENGZHIJUN
 * @Date 2021/2/2 17:00
 */
@Data
@TableName("sys_user")
public class SysUser implements Serializable {

    @TableId(value = "user_id")
    private Long userId;
    private String username;//登录用户名,不可重复
    private String nickname;
    private String avatar;
    private String password;
    private String mobile;//手机号码,不可重复,未来用于登录
    private String appid;
    private String appscrect;
    private String openid;

    //@Email(message = "{message} -> email不正确")
    private String email;
    private String userType;//用户类型（00系统用户:管理 10内部用户 20注册用户）
    private String userStatus;//帐号状态（0正常 1停用）
    private String deleteStatus;//删除标志（0代表存在 1代表删除）
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private Date createAt;
    private String createByUserid;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;
    private String updateByUserid;

    private Boolean enabled;
    private Boolean notExpired;
    private Boolean accountNotLocked;
    private Boolean credentialsNotExpired;

}
